package com.why.jvm.hotspot.src.share.vm.oops.constants;

import lombok.Data;

/**
 * @author xiaoTian
 * @date 2022/7/22 14:48
 * @Description:
 */
@Data
public class ConstantMethodTypeInfo extends ConstantInfoBase{

    private int descriptorIndex;


    private String getDescriptorValue(){
        return getConstantPool().getConstantPoolMap().get(descriptorIndex).toString();
    }

    @Override
    public String toString() {
        return "ConstantMethodTypeInfo{" +
                "descriptorIndex=" + descriptorIndex +
                ",descriptor=" + getDescriptorValue() +
                '}';
    }
}
